package com.abc.scholarship.common.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-07-03  11:20
 */
@Getter
@AllArgsConstructor
public enum SexEnum {
    MAN(1, "男"),
    WOMAN(2, "女");

    private Integer type;
    private String desc;

    public static Integer getType(String sex) {
        if(sex.equals(MAN.desc)){
            return MAN.getType();
        } else {
            return WOMAN.getType();
        }
    }
}
